package com.ruoyi.personnel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.personnel.mapper.SysUserSeatMapper;
import com.ruoyi.personnel.domain.SysUserSeat;
import com.ruoyi.personnel.service.ISysUserSeatService;

/**
 * 员工座位表Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-16
 */
@Service
public class SysUserSeatServiceImpl implements ISysUserSeatService 
{
    @Autowired
    private SysUserSeatMapper sysUserSeatMapper;

    /**
     * 查询员工座位表
     * 
     * @param id 员工座位表主键
     * @return 员工座位表
     */
    @Override
    public SysUserSeat selectSysUserSeatById(Integer id)
    {
        return sysUserSeatMapper.selectSysUserSeatById(id);
    }

    /**
     * 查询员工座位表列表
     * 
     * @param sysUserSeat 员工座位表
     * @return 员工座位表
     */
    @Override
    public List<SysUserSeat> selectSysUserSeatList(SysUserSeat sysUserSeat)
    {
        return sysUserSeatMapper.selectSysUserSeatList(sysUserSeat);
    }

    /**
     * 新增员工座位表
     * 
     * @param sysUserSeat 员工座位表
     * @return 结果
     */
    @Override
    public int insertSysUserSeat(SysUserSeat sysUserSeat)
    {
        return sysUserSeatMapper.insertSysUserSeat(sysUserSeat);
    }

    /**
     * 修改员工座位表
     * 
     * @param sysUserSeat 员工座位表
     * @return 结果
     */
    @Override
    public int updateSysUserSeat(SysUserSeat sysUserSeat)
    {
        return sysUserSeatMapper.updateSysUserSeat(sysUserSeat);
    }

    /**
     * 批量删除员工座位表
     * 
     * @param ids 需要删除的员工座位表主键
     * @return 结果
     */
    @Override
    public int deleteSysUserSeatByIds(Integer[] ids)
    {
        return sysUserSeatMapper.deleteSysUserSeatByIds(ids);
    }

    /**
     * 删除员工座位表信息
     * 
     * @param id 员工座位表主键
     * @return 结果
     */
    @Override
    public int deleteSysUserSeatById(Integer id)
    {
        return sysUserSeatMapper.deleteSysUserSeatById(id);
    }
}
